package java3_21.Scanner;
//鱼类
public class Fish extends MoveObject implements Move{
    public Fish(String name) {
        super(name);
    }

    @Override
    public void swim() {
        System.out.println(this.getName()+"在水里游泳！");
    }

    @Override
    public void print() {
        System.out.println("这是一条"+this.getName());
    }
}
